import java.util.ArrayList;
import java.util.List;

public class PrintAZ {
    final static int TOTAL = 2;
    public static void main(String[] args) {
        //生成数字列表1-52
        List<Integer> numbers = new ArrayList<>();
        for (int i = 1; i <= 52; i++) {
            numbers.add(i);
        }
        //生成字母列表A-Z
        List<Character> chars = new ArrayList<>();
        for (char i = 'A'; i <= 'Z'; i++)
        {
            chars.add(i);
        }
        //PrintTask(打印队列, 每次打印长度, 次序, 队列总数)
        PrintTask<Integer> task1 = new PrintTask<>(numbers, 2, 0, TOTAL);
        PrintTask<Character> task2 = new PrintTask<>(chars, 1, 1, TOTAL);
        new Thread(task1).start();
        new Thread(task2).start();
    }
}